<?php
namespace app\admin\validate;

use think\Validate;

class PartnerValidate extends Validate
{
    protected $rule = [
        'p_name'      => 'require',
        'p_card'      => 'require',
        'p_tel'       => 'require|number'
    ];

    protected $message = [
        'p_name.require'    => '申请人姓名不能为空',
        'p_card.require'    => '申请人身份证号不能为空',
        'p_tel.require'     => '申请人手机号码不能为空',
        'p_tel.number'      => '申请人手机号码必须是数字'
    ];
}